<?php 
$total = 0;
foreach ($options as $option){
  $total += $option['number'];
}?>
<?php if(isset($pollFlash) && $pollFlash) echo '<div class="flash" id="pollFlash">'.$pollFlash.'</div><br>'?>
<?php foreach ($options as $option):?>
    <span class="font13"><?php echo striptags($option['text']) ?></span>  - 
    <span class="bold darkblue"><?php echo $total > 0 ? round($option['number']*100/$total, 2) : 0?> %</span>
    <br clear="all">
<?php endforeach;?>
<br clear="all">
<a class="right underline pointer" onclick="showOptions();">Хаах</a>
<br clear="all">
